@extends('users.app')
@section('title', '编辑站点信息')
@section('content')
<div class="col-lg-12">
  <div class="card col-xl-10 offset-xl-1">
    <div class="card-header border-bottom">
      <h4 class="card-title">站点基本信息</h4>
    </div>
    <div class="card-body">
      @include('common.error')
      <form class="form" action="{{ route('sites.update', $site->id) }}" method="POST" accept-charset="UTF-8">
        <input type="hidden" name="_token" value="{{ csrf_token() }}">
        <input type="hidden" name="_method" value="PUT">
        <div class="form-row">
          <div class="form-group col-lg-6 floating-label">
            <label for="firstname1">标题</label>
            <input type="text" class="form-control" id="firstname1" name="title" value="{{ old('title', $site->title ) }}">
          </div>
          <div class="form-group col-lg-6 floating-label">
            <label for="lastname1">模板颜色</label>
            <input type="text" class="form-control color-picker" id="lastname1" name="template_color" style="background-color: {{ $site->template_color }}; color: #fff;" value="{{ old('template_color', $site->template_color) }}">
          </div>
          <div class="form-group col-sm-12 floating-label">
            <label for="username1">二维码链接</label>
            <input type="text" class="form-control" id="username1" name="qrcode_link" value="{{ old('qrcode_link', $site->qrcode_link) }}">
          </div>
          <!--div class="form-group col-lg-12 floating-label">
            <label for="email1">视频链接</label>
            <textarea class="form-control" id="email1" name="video_link" placeholder="视频链接每行一个">{{ old('video_link', $site->video_link) }}</textarea>
          </div-->
          <div class="form-group col-sm-12 floating-label">
            <label for="topImageSrc">视频顶部图片地址</label>
            <input type="text" class="form-control" id="topImageSrc" name="top_image_src" value="{{ old('top_image_src', $site->top_image_src ) }}">
          </div>
          <!--div class="form-group col-lg-9 floating-label">
            <label for="videoTitle">视频标题文字</label>
            <input type="text" class="form-control" id="videoTitle" name="video_title" value="{{ old('video_title', $site->video_title) }}">
          </div-->
          <div class="form-group col-sm-12 floating-label">
            <label for="topImageLink">顶部图片跳转链接</label>
            <input type="text" class="form-control" id="topImageLink" name="top_image_link" value="{{ old('top_image_link', $site->top_image_link) }}">
          </div>
          <div class="form-group col-lg-12 text-righ">
            <button type="submit" class="btn btn-common">保存</button>
          </div>
        </div>
      </form>
    </div>
  </div>
</div>
@include('ads.edit')
@stop
